package com._21cn.cms.template.entity.vo;

import com._21cn.cms.article.entity.Article;
import com._21cn.cms.site.entity.Channel;
import com._21cn.cms.site.entity.Column;
import com._21cn.cms.site.entity.Region;
import com._21cn.cms.site.entity.Site;
import com._21cn.cms.template.entity.Template;

/**
 * Created by Thinkpad on 2017/4/11.
 */
public class Page {
    private String prevPageNav = "";
    private String nextPageNav = "";
    private String pagerNav = "";
    private String countPageNav = "";
    private String shortPagerNav = "";

    private Template template = new Template();
    private Integer pageType = 0;
    private String staticFilePath = "";

    private Column column = new Column();
    private Channel channel = new Channel();
    private Article article = new Article();
    private Region region = new Region();
    private Site site = new Site();
    private Column srcColumn = new Column();

    public Column getSrcColumn() {
        return this.srcColumn;
    }

    public void setSrcColumn(Column srcColumn) {
        this.srcColumn = srcColumn;
    }

    public Region getRegion() {
        return region;
    }

    public void setRegion(Region region) {
        this.region = region;
    }

    public Site getSite() {
        return site;
    }

    public void setSite(Site site) {
        this.site = site;
    }

    public String getStaticFilePath() {
        return staticFilePath;
    }

    public void setStaticFilePath(String staticFilePath) {
        this.staticFilePath = staticFilePath;
    }

    public Article getArticle() {
        return article;
    }

    public void setArticle(Article article) {
        this.article = article;
    }

    public Column getColumn() {
        return column;
    }

    public void setColumn(Column column) {
        this.column = column;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public Integer getPageType() {
        if( template!=null && template.getTemplateType()>0 ){
            pageType = template.getTemplateType();
        }
        return pageType;
    }

    public void setPageType(Integer pageType) {
        this.pageType = pageType;
    }

    public String getShortPagerNav() {
        return shortPagerNav;
    }

    public void setShortPagerNav(String shortPagerNav) {
        this.shortPagerNav = shortPagerNav;
    }

    public Template getTemplate() {
        return template;
    }

    public void setTemplate(Template template) {
        this.template = template;
    }

    public String getPrevPageNav() {
        return prevPageNav;
    }

    public void setPrevPageNav(String prevPageNav) {
        this.prevPageNav = prevPageNav;
    }

    public String getNextPageNav() {
        return nextPageNav;
    }

    public void setNextPageNav(String nextPageNav) {
        this.nextPageNav = nextPageNav;
    }

    public String getPagerNav() {
        return pagerNav;
    }

    public void setPagerNav(String pagerNav) {
        this.pagerNav = pagerNav;
    }

    public String getCountPageNav() {
        return countPageNav;
    }

    public void setCountPageNav(String countPageNav) {
        this.countPageNav = countPageNav;
    }
}
